﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace FinanceAPI.Model
{
    /// <summary>
    /// 凭证项目表
    /// </summary>
    [Serializable]
    [Description("凭证客户表")]
    [Table("Pd_Vourcher_Customer")]
    public class PdEntityVourcherCustomer : AggregateRoot
    {
        /// <summary>
        /// 集团Id
        /// </summary>
        [MaxLength(50)]
        public string GroupId { get; set; }

        /// <summary>
        /// 集团名称
        /// </summary>
        [MaxLength(100)]
        public string GroupName { get; set; }

        /// <summary>
        /// 公司代码
        /// </summary>
        [MaxLength(50)]
        public string CompanyCode { get; set; }

        /// <summary>
        /// 公司名称
        /// </summary>
        [MaxLength(100)]
        public string CompanyName { get; set; }

        /// <summary>
        /// 公司唯一代码
        /// </summary>
        [MaxLength(50)]
        public string CompanyUniqueId { get; set; }

        /// <summary>
        /// 编码
        /// </summary>
        [MaxLength(50)]
        public string CustomerCode { get; set; }

        /// <summary>
        /// 客户名称
        /// </summary>
        [MaxLength(50)]
        public string CustomerName { get; set; }
        /// <summary>
        /// 内部客户
        /// </summary>
        [MaxLength(100)]
        public string InternalCustomer { get; set; }
        /// <summary>
        /// 阀值
        /// </summary>
        public decimal Threshold { get; set; }
    }
}
